package com.anyou.mall.fin.param;

import com.anyou.common.annotation.Excel;
import com.anyou.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 保证金管理对象 fin_bond
 *
 * @author gaochaohao
 * @date 2022-04-19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
@ApiModel(value = "保证金管理参数")
@TableName(value = "fin_bond")
public class BondDriver extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 保证金编号 */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("保证金编号")
    private Long bondId;

    /** 汽配商审核编号 */
    @ApiModelProperty("汽配商审核编号")
    @Excel(name = "汽配商审核编号")
    private Long carPartsShopAuditId;



    /** 司机个人审核编号 */
    @ApiModelProperty("司机个人审核编号")
    @Excel(name = "司机个人审核编号")
    private Long individualAuditId;


    /** 保证金类型：0汽配商，1维修厂，2司机 */
    @ApiModelProperty("保证金类型：0合伙人，1维修厂，2司机")
    @Excel(name = "保证金类型：0合伙人，1维修厂，2司机")
    private Integer bondType;

    /** 删除标志：0未删除，2已删除 */
    @ApiModelProperty("删除标志：0未删除，2已删除")
    private String delFlag;


    @ApiModelProperty("司机id")
    private Long driverId;

    @ApiModelProperty("合伙人id")
    private Long partnerId;

    @ApiModelProperty("合伙人名称")
    @TableField(exist = false)
    private String shopName;
    @ApiModelProperty("合伙人电话")
    @TableField(exist = false)
    private String shopPhone;
    @ApiModelProperty("合伙人状态（0启用，1停用）")
    @TableField(exist = false)
    private String shopStatus;

    @ApiModelProperty("合伙人保证金金额")
    @TableField(exist = false)
    private BigDecimal autoPartsBond;

    @ApiModelProperty("合伙人支付保证金时间")
    @TableField(exist = false)
    private Date shopPayBondTime;

    @ApiModelProperty("合伙人退还保证金时间")
    @TableField(exist = false)
    private Date shopReturnBondTime;



    @ApiModelProperty("司机名字")
    @TableField(exist = false)
    private String driverName;
    @ApiModelProperty("司机电话")
    @TableField(exist = false)
    private String driverPhone;

    @ApiModelProperty("司机状态（0启用，1停用）")
    @TableField(exist = false)
    private Integer driverStatus;

    @ApiModelProperty("司机保证金金额")
    @TableField(exist = false)
    private BigDecimal driverBond;

    @ApiModelProperty("司机支付保证金时间")
    @TableField(exist = false)
    private Date driverPayBondTime;

    @ApiModelProperty("司机退还保证金时间")
    @TableField(exist = false)
    private Date driverReturnBondTime;

}
